{php}
    $this->assign('module', Application::dummy()->html()->getModule());
    $this->assign('module_url', Application::getRequest()->uri(0));
    $this->assign('styles', array('styles/base.css'));
    $this->assign('scripts', array('scripts/frontend.js'));
{/php}

{include file="_frame/_header.tpl" styles=$styles}

<div id="main" align="center">
    <div id="content"><img src="images/top_large.jpg" width="1006" height="205" />
    
    <!-- yellow line -->
    <div id="yellow_line"><img src="images/yellow_line.jpg" width="1006" height="4" alt="" /></div>
    <!-- ends yellow line -->

    <!-- logo -->
    <div id="logo">
        <table border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td valign="top"><a href="."><img src="images/logo_small.jpg" width="59" height="59" border="0" /></a></td>
                <td valign="bottom" align="left"><span id="logo_write_white">САЙТ ФОТОГРАФИЙ</span><br /><span id="logo_write_yellow">ВЛАДИМИРА КОЛУЖЕНКОВА</span></td>
            </tr>
        </table>
    </div>
    <!-- ends logo -->
    
    <!-- menu -->
    <table width="1006" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td align="center" valign="middle" height="25" id="menu">
                {block module="gallery" name="categories" file="_menu/default/categories.tpl"}
            </td>
        </tr>
    </table>
    <!-- menu ends -->

    <table width="1006" border="0" cellspacing="5" cellpadding="0">
        <tr>
            <!-- top_small -->
                
            <td height="66" id="top_small_1" width="741" align="left" valign="middle">
	    {if "gallery" == $module}
                {block module="gallery" name="categories" file="gallery/block/top.tpl"}
	    {elseif "tag" == $module}
		{if 'tags.html' == $module_url}
		    <span id="intend_arrow_top_small"><img src="images/arrow_top_small.jpg" width="9" height="9" /></span>
		    <span id="intened_header_top_small">Теги раздела "Авиация"</span>
		{else}
		    {block module="tag" name="title"}
		{/if}
            {else}
                <span id="intend_arrow_top_small"><img src="images/arrow_top_small.jpg" width="9" height="9" /></span>
                <span id="intened_header_top_small">{$_title|escape}</span>
            {/if}
            </td>
            <td height="66" id="top_small_2" width="250" align="left" valign="middle">&nbsp;</td>
            <!-- ends top_small -->
            
        </tr>
        <tr>
            <!-- content -->
            <td align="center" valign="top" width="741">
                
                <table width="100%" border="0" cellspacing="0" cellpadding="0"  style="background-color:#08314f">
                    <tr class="content_bg_images">
                        <td align="left" valign="top"{if "gallery" != $module} id="info_text"{/if}>
                            {$contents}
                        </td>
                    </tr>
                </table>
                

		<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:1px;" class="content_bg_images">
                    <tr>
                        <td align="left" id="navigation">
                            {block module="kernel" name="navigation" file="_menu/default/navigation.tpl"}
                        </td>
                    </tr>
		    <tr>
                        <td align="right" id="copyright">
                            {block module="block" name="footer" output=true}
                        </td>
                    </tr>
                </table>

            </td>
            <!-- ends content -->
            
            <!-- right menu -->
            <td align="left" valign="top" style="background-color:#031426">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">

		    {if isset($active_category)}
			{block module="gallery" name="subcategories"
			    file="_menu/default/subcategories.tpl" active=$active_category}
		    {/if}
		    {if 'tags.html' != $module_url}
			{block module="tag" name="cloud"}
		    {/if}
                    
                    <tr class="cells_right_menu">
                        <td align="left" valign="top" class="one_more">
			    <p><img src="images/arrow_one_more.jpg" width="8" height="5" /> кстати...</p>
                            {block module="block" name="remark" output=true}
                        </td>
                    </tr>
                </table>
            </td>
            <!-- ends right menu -->
            
        </tr>
    </table>

    </div>
</div>

{include file="_frame/_footer.tpl"}